import Vue from 'vue'
import apiHome from './modules/apiHome'
import apiNews from './modules/apiNews'
import apiComment from './modules/apiComment'
import apiPhoto from './modules/apiPhoto'
import apiGoods from './modules/apiGoods'

// 把axios挂载在原型上，方便组件使用
Vue.prototype.$http = {
  ...apiHome,
  ...apiNews,
  ...apiComment,
  ...apiPhoto,
  ...apiGoods
}
